#!/bin/bash


OsFormat_Path='/var/www/html/OsFormat'
#OsFormat_Path='/usr/local/src/OsFormat'

cat $OsFormat_Path/OsFormat/node.list |awk '{print $1}' |
while read dhcpip
do
	echo "dhcp : $dhcpip"
	scp -r $OsFormat_Path/OsFormat $dhcpip:/tmp/
	ssh -n $dhcpip "cd /tmp/OsFormat/ ; nohup /usr/bin/python OsFormat.py &"
done
